import request from '@/utils/request'
// 外场工单

// 查询工单分页数据
export function orderList(data) {
  return request({
    url: '/outfield-vehicle-equipment-inspect/listByPage',
    method: 'post',
    data:data
  })
}

// 查询工单类型统计
export function orderTypeStatistics() {
  return request({
    url: '/outfield-vehicle-equipment-inspect/typeStatistics',
    method: 'get',
   
  })
}

// 根据id删除工单记录
export function deleteOrder(id) {
  return request({
    url: '/outfield-vehicle-equipment-inspect/delete/'+id,
    method: 'delete',
  })
}

// 根据id查询
export function queryById(data) {
  return request({
    url: "/outfield-vehicle-equipment-inspect/queryById",
    method: "get",
    params:data,
  });
}